package com.hiultra.archive.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hiultra.common.annotation.Excel;
import com.hiultra.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 档案盒盒记录上报对象 archive_box_inout_records
 *
 * @author 派大星
 * @date 2024-07-23
 */
public class ArchiveBoxInoutRecords extends BaseEntity {
    private static final long serialVersionUID = 1L;
    // 1进档案室  2出档案室
    public static final String BOX_IN = "1";
    public static final String BOX_OUT = "2";


    /**
     * 记录序号
     */
    private Long id;

    /**
     * 供电单位编号
     */
    private String orgNo;

    /**
     * 档案室编号
     */
    @Excel(name = "档案室编号",needMerge = true)
    private String roomNo;

    /**
     * 记录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss",needMerge = true)
    private Date recTime;

    /**
     * 1进档案室  2出档案室
     */
    @Excel(name = "进出状态", dictType = "in_out_door",needMerge = true)
    private String type;

    /**
     * 推送状态01 已推送 02 未推送
     */
    @Excel(name = "推送状态", dictType = "push_status",needMerge = true)
    private String pushStatus;
    @Excel(name = "档案盒进出记录详细")
    public List<ArchiveBoxInoutdetail> boxList;

    public List<ArchiveBoxInoutdetail> getBoxList() {
        return boxList;
    }

    public void setBoxList(List<ArchiveBoxInoutdetail> boxList) {
        this.boxList = boxList;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setOrgNo(String orgNo) {
        this.orgNo = orgNo;
    }

    public String getOrgNo() {
        return orgNo;
    }

    public void setRoomNo(String roomNo) {
        this.roomNo = roomNo;
    }

    public String getRoomNo() {
        return roomNo;
    }

    public void setRecTime(Date recTime) {
        this.recTime = recTime;
    }

    public Date getRecTime() {
        return recTime;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setPushStatus(String pushStatus) {
        this.pushStatus = pushStatus;
    }

    public String getPushStatus() {
        return pushStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orgNo", getOrgNo())
                .append("roomNo", getRoomNo())
                .append("recTime", getRecTime())
                .append("type", getType())
                .append("pushStatus", getPushStatus())
                .toString();
    }
}
